<template>
  <el-row class="tree-tools" style="width: 100%">
    <el-col :span="18" class="left">
      <i class="el-icon-s-home"></i>
      <span>{{ item.label }}</span>
    </el-col>
    <el-col :span="6" class="right" > 
      <span >负责人</span>
      <el-dropdown>
        <span  class="el-dropdown-link">
       
          操作<i class="el-icon-arrow-down el-icon--right"></i>
        </span>
        <el-dropdown-menu slot="dropdown">
          <el-dropdown-item>添加子部门</el-dropdown-item>
          <el-dropdown-item>查看部门</el-dropdown-item>
          <el-dropdown-item>删除部门</el-dropdown-item>
        </el-dropdown-menu>
      </el-dropdown>
    </el-col>
  </el-row>
</template>

<script>
export default {
  // item 从外界传入数据
  props:['item']
};
</script>

<style lang="scss">
.tree-tools {
  .left {
    font-weight: 700;
    i {
      margin-right: 8px;
    }
  }
  .right {
    text-align: right;
    span {
      margin-right: 20px;
    }
    .el-dropdown-link {
      font-size: 16px;
    }
  }
}
</style>